import result from '../utils/request'

export function commentList (params) {
  return result({
    url: '/mp/v1_0/articles',
    method: 'get',
    params
  })
}

export function commentStatus (id, allow) {
  return result({
    url: '/mp/v1_0/comments/status',
    params: {
      article_id: id
    },
    method: 'PUT',
    data: {
      allow_comment: allow
    }
  })
}
